﻿#region zh-CHS 2006 - 2010 DemoSoft 团队 | en 2006-2010 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
//
//                              2006-2010 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

#region zh-CHS 包含名字空间 | en Include namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion

namespace Demo.Mmose.Core.Entity.Suit.Quest
{

    /// <summary>
    /// 
    /// </summary>
    /// <param name="auraEven"></param>
    public delegate void QuestEvenCallback<ObjectT, QuestT>( QuestEven<ObjectT, QuestT> auraEven ) where QuestT : Quest;

    #region zh-CHS 共有的事件数据类 | en Public EventArgs Class


    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class QuestCollectionsEventArgs<T> : EventArgs where T : Quest
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public QuestCollectionsEventArgs( QuestCollections<T> questCollections )
        {
            m_QuestCollections = questCollections;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// QuestManager的数据
        /// </summary>
        private QuestCollections<T> m_QuestCollections = null;
        #endregion
        /// <summary>
        /// QuestManager实例
        /// </summary>
        public QuestCollections<T> QuestCollections
        {
            get { return m_QuestCollections; }
        }
        #endregion
    }

    /// <summary>
    /// AvailableQuestsCallEventArgs的事件数据类
    /// </summary>
    public class AvailableQuestsCallEventArgs<T, V> : QuestCollectionsEventArgs<V>
        where V : Quest
        where T : QuestCollection<V>

    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AvailableQuestsCallEventArgs( T questCollection, QuestCollections<V> questCollections ) :
            base( questCollections )
        {
            m_QuestCollection = questCollection;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private QuestCollection<V> m_QuestCollection = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public QuestCollection<V> QuestCollection
        {
            get { return m_QuestCollection; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private List<V> m_AvailableQuests;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public List<V> AvailableQuests
        {
            get { return m_AvailableQuests; }
            set { m_AvailableQuests = value; }
        }

        #endregion
    }

    #endregion
}
#endregion